﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestOSMApi.Repositories
{
    public class RouteResult
    {
        [JsonProperty("type")]
        public string Type { get; set; }

        [JsonProperty("crs")]
        public Crs Crs { get; set; }

        [JsonProperty("coordinates")]
        public List<double[]> Coordinates { get; set; }

        [JsonProperty("properties")]
        public RouteProperties Properties { get; set; }

        public Boolean Success { get; set; }
    }

    public class RouteProperties
    {
        [JsonProperty("distance")]
        public string Distance { get; set; }

        [JsonProperty("description")]
        public string Description { get; set; }

        [JsonProperty("traveltime")]
        public string Traveltime { get; set; }
    }
}
